﻿using System;

namespace AiFrame.InterfaceLib.Data.Patterns
{
    /// <summary>
    /// Represents a sortable list.
    /// </summary>
    /// <typeparam name="T">The type of the item to be stored in the list.</typeparam>
    public interface ISortableList<T>
    {
        /// <summary>
        /// Sorts the list with the given comparison algorithm.
        /// </summary>
        /// <param name="comparison">The comparison algorithm.</param>
        void Sort(Comparison<T> comparison);
    }
}
